package com.cfh.service;

import java.util.List;

import org.apache.log4j.Logger;

import com.cfh.domain.Answer;
import com.cfh.domain.AnswerExample;
import com.cfh.persistence.dao.AnswerDAO;

public class AnswerServiceImpl implements AnswerService  {
	/**
	 * Logger for this class
	 */
	private static final Logger logger = Logger.getLogger(AnswerServiceImpl.class);

	/**
	 * Logger for this class
	 */

	private AnswerDAO AnswerDAO;

	

	public void insert(Answer Answer) {
		AnswerDAO.insert(Answer);
	}

	public List selectByExample(AnswerExample example, int start, int limit) {
		return AnswerDAO.selectByExample(example, start, limit);
	}
	
	public int countByExample(AnswerExample example) {
		return AnswerDAO.countByExample(example);
	}

	public int update(Answer Answer) {
		return AnswerDAO.updateByPrimaryKeySelective(Answer);
	}

	public int deleteByExample(AnswerExample example) {
		return AnswerDAO.deleteByExample(example);
	}

	public void setAnswerDAO(AnswerDAO AnswerDAO) {
		this.AnswerDAO = AnswerDAO;
	}

	public AnswerDAO getAnswerDAO() {
		return AnswerDAO;
	}

	public int deleteByPrimaryKey(Long key) {
		return AnswerDAO.deleteByPrimaryKey(key);
	}

	public List selectByExample(AnswerExample example) {
		return AnswerDAO.selectByExample(example);
	}

}
